package com.qg.wcsopcuaqj.enums.yeyatai.yeya1;

import com.qg.wcsopcuaqj.enums.CodeEnum;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 10:06
 * @Version 1.0
 */
public enum YY1Plc2WcsVarEnum implements CodeEnum {
    /**
     *入库液压台1
     **/
    Online("Online",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.Online","QBoolean","联机"),
    Alarm("Alarm",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.Alarm","QBoolean","故障"),
    AlarmInfo("AlarmInfo",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.AlarmInfo","QArray|QBoolean",""),
    LifterPosition("LifterPosition",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.LifterPosition","QShort","液压台位置，1：动作中；2：工作位；3：低位 "),



//    Heart("Heart",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.CommunicationStatus.Heart","",""),
//    Free("Free",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.Free","","空闲"),
    //TaskFinish("TaskFinish",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.TaskFinish","","任务完成"),
//    Goods("Goods",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.Goods","","载货台有货"),
//    TaskNo("TaskNo",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.TaskNo","",""),
//    STB("STB",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.STB","",""),
//    ACK("ACK",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.Platform1ToWCS.ACK","",""),

    /**
     *称重plc
     **/
    ;
    private Integer namespace;
    private String identity;
    private String type;
    private String desc;
    private String name;
    YY1Plc2WcsVarEnum(String name, Integer namespace, String identity, String type, String desc){
        this.name = name;
        this.namespace = namespace;
        this.identity = identity;
        this.type = type;
        this.desc = desc;
    }

    @Override
    public void set(String name, Integer nameSpace, String identity) {
        this.name = name;
        this.namespace = nameSpace;
        this.identity = identity;
    }
    @Override
    public Integer getNamespace() {
        return namespace;
    }

    @Override
    public String getIdentity() {
        return identity;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
